package btcbot;

import java.util.Properties;

import btcbot.communication.CommunicationManager;
import btcbot.entities.Account;
import btcbot.entities.Depth;
import btcbot.util.PropertyManager;

public class Test {

    private static final String PROXY_NEED = "communication.proxy.need";
    private static final String PROXY_HOST = "communication.proxy.host";
    private static final String PROXY_PORT = "communication.proxy.port";

	public static void main(String[] args) throws Exception {

	    if (PropertyManager.getBoolean(PROXY_NEED)) {
    	    Properties systemSettings = System.getProperties();
    	    systemSettings.put("proxySet", "true");
    	    systemSettings.put("https.proxyHost", PropertyManager.get(PROXY_HOST));
    	    systemSettings.put("https.proxyPort", PropertyManager.get(PROXY_PORT));
	    }

        Account account = CommunicationManager.getAccount();
        System.out.println(account.toString());

        Depth depth = CommunicationManager.getDepth();
        System.out.println(depth.toString());
	}

}
